import {useState} from "react"
import Z_3 from "./Z_3"
const F_3 =()=>{
    const[count,serCount]=useState(0)
    const[userinfo,setUserinfo]=useState(
        {
            name:"占山",
            age:19,
            email:"zhangsan@qq.com"
        }
    )
    const Change =()=>{
        serCount(()=>{
            if(count<5){
                return count+1
            }
            return count +5
        })
    }
    const updateUserInfo =()=>{
        setUserinfo(()=>{
            return{
                ...userinfo,
                email:"zhangsan@163.com"
            }
        })
    }
    return (
        div
    )
}